package com.bite.deom1;

interface IFlyable {  //接口
    //飞翔
    void fly();
}

public class Brid implements IFlyable {  //实现接口

    private String bridName;

    public Brid(String bridName) {
        this.bridName = bridName;
    }

    //重写接口中抽象方法fly()
    public void fly() {
        System.out.println(bridName+" 在天上飞......");
    }

    public static void main(String[] args) {
        IFlyable iFlyable = new Brid("小鸟");
        iFlyable.fly();
    }

}
